package cn.dankal.flyaudio.adapter;

import android.view.View;
import android.view.ViewGroup;

import com.chad.library.adapter.base.BaseViewHolder;

import cn.dankal.basiclib.base.recyclerview.BaseRecyclerViewAdapter;
import cn.dankal.basiclib.base.recyclerview.BaseRecyclerViewHolder;
import cn.dankal.basiclib.util.image.PicUtils;
import cn.dankal.flyaudio.R;

public class CuurentImgAdapter extends BaseRecyclerViewAdapter<String> {
    @Override
    protected int getLayoutResId(int viewType) {
        return R.layout.item_current_img;
    }

    @Override
    protected BaseRecyclerViewHolder getViewHolder(ViewGroup parent, View rootView, int viewType) {
        return new ViewHolder(rootView);
    }

    public class ViewHolder extends BaseRecyclerViewHolder<String> {

        public ViewHolder(View view) {
            super(view);
        }

        @Override
        public void onBindData(String data, int position) {
            PicUtils.loadNormal(data,itemView.findViewById(R.id.iv_img));

        }
    }
}
